//---------------------------------------------------------------------
// This file is part of the Microsoft BizTalk Server 2006 SDK
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// This source code is intended only as a supplement to Microsoft BizTalk
// Server 2006 release and/or on-line documentation. See these other
// materials for detailed information regarding Microsoft code samples.
//
// THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
// KIND, WHETHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
// PURPOSE.
//---------------------------------------------------------------------
using System;

namespace MsPartners.Unisys.BizTalkAdapters.AdapterWizard
{
	/// <summary>
	/// PropertyPairEvent class holds name and propValue for
	/// transportation in events. The removeItem field indicates
	/// that the propValue must be removed from the resultcollection
	/// </summary>
	public class PropertyPairEvent : EventArgs
	{
		private string itemName = null;
		private object itemValue = null;
		private bool removeItem = false;

		public PropertyPairEvent(string name,object val)
		{
			this.itemName = name;
			this.itemValue = val;
		}
		
		public PropertyPairEvent(string name,object val,bool removeItem)
		{
			this.itemName = name;
			this.itemValue = val;
			this.removeItem = removeItem;
		}

		public string Name
		{
			set	{	itemName = value;	}
			get	{	return itemName;	}
		}		

		public object Value
		{
			set	{	itemValue = value;	}
			get	{	return itemValue;	}
		}

		public bool RemoveItem
		{
			get { return removeItem; }
			set { removeItem = value; }
		}		
	}
}
